﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace CMS6Tools.Common.TFS
{
    [DataContract]
    public class TeamMemberCapacity
    {
        #region TFS2013
        [DataMember]
        public Guid TeamMemberId { get; set; }

        [DataMember]
        public float Capacity { get; set; }

        [DataMember]
        public string Activity { get; set; }

        [DataMember]
        public string DisplayName { get; set; }

        [DataMember]
        public DaysOffDates[] DaysOffDates { get; set; }
        #endregion

        #region TFS2015
        [DataMember(Name = "activities")]
        public TeamMemberActivity[] Activities { get; set; }
        [DataMember(Name = "teamMember")]
        public TeamMemberInfo TeamMember { get; set; }

        [DataMember(Name = "daysOff")]
        public DaysOffDates[] DaysOff { get; set; }
        #endregion
         
    }

    [DataContract]
    public class TeamMemberActivity
    {
        [DataMember(Name = "name")]
        public string Name { get; set; }
        [DataMember(Name = "capacityPerDay")]
        public float CapacityPerDay { get; set; }
    }

    [DataContract]
    public class TeamMemberInfo
    {
        [DataMember(Name = "id")]
        public Guid Id { get; set; }
        [DataMember(Name = "displayName")]
        public string DisplayName { get; set; }
        [DataMember(Name = "uniqueName")]
        public string UniqueName { get; set; }
        [DataMember(Name = "imageUrl")]
        public string ImageUrl { get; set; }
        [DataMember(Name = "url")]
        public string Url { get; set; } 
    }



}
